package com.itany.corejava.day10;

import java.util.ArrayList;
import java.util.function.*;

public class TestMethodRef {

    public static void main(String[] args) {


        BinaryOperator<Integer> randomFunction=Math::max;


        String s="Hello";
        UnaryOperator<String> sConcat=s::concat;
        System.out.println(sConcat.apply("World"));
        System.out.println(sConcat.apply("aaa"));


        UnaryOperator<String> sUpperCase=String::toUpperCase;


        Function<String,Integer> sLength=String::length;
        System.out.println(sLength.apply("abcd"));

        Supplier<ArrayList<String>> arrayList=ArrayList::new;



    }

}
